package cn.yuanqiao.archive.supervision.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.exception.ServiceException;
import cn.yuanqiao.common.utils.StringUtils;
import cn.yuanqiao.common.core.domain.BaseEntity;
import cn.yuanqiao.common.utils.SecurityUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 督察指导主表对象 YQSUPERVISION
 * 
 * @author xy
 * @date 2023-08-01
 */
public class Supervision extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private final String BIGTABLENAME = "_YQSUPERVISION";

    public Supervision() {
        String tenantCode = SecurityUtils.getTenantCode();
        if(StringUtils.isEmpty(tenantCode)){
            throw new ServiceException("tenantCode is null");

        }else {
            this.tableName = tenantCode.toUpperCase()+BIGTABLENAME;
        }
    }

    /** id */
 /*   @IdAnnotation*/
    private Long id;

    /** 指导人 */
    @Excel(name = "指导人")
    private String mentor;

    /** 指导意见 */
    @Excel(name = "指导意见")
    private String suggestions;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 反馈内容 */
    @Excel(name = "反馈内容")
    private String feedbackContent;

    /** 创建人Id */
    @Excel(name = "创建人Id")
    private Long createId;

    private String tableName;

    private Date edCreateTime;

    private String daIds;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMentor(String mentor) 
    {
        this.mentor = mentor;
    }

    public String getMentor() 
    {
        return mentor;
    }
    public void setSuggestions(String suggestions) 
    {
        this.suggestions = suggestions;
    }

    public String getSuggestions() 
    {
        return suggestions;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setFeedbackContent(String feedbackContent) 
    {
        this.feedbackContent = feedbackContent;
    }

    public String getFeedbackContent() 
    {
        return feedbackContent;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Date getEdCreateTime() {
        return edCreateTime;
    }

    public void setEdCreateTime(Date edCreateTime) {
        this.edCreateTime = edCreateTime;
    }

    public String getDaIds() {
        return daIds;
    }

    public void setDaIds(String daIds) {
        this.daIds = daIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mentor", getMentor())
            .append("suggestions", getSuggestions())
            .append("state", getState())
            .append("feedbackContent", getFeedbackContent())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
